package com.example.demo.zhoushengwen.controller;


import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.ModelAndView;

//返回结果集测试:   localhost:8080/response/test
@RestController
@RequestMapping("/errorPage")
public class ErrorPagesController {

    @GetMapping("/404")
    public ModelAndView pageNotFind() {
        return new ModelAndView("/404");
    }

    @GetMapping("/500")
    public ModelAndView errorPage() {
        return new ModelAndView("/500");
    }
}
